<div class="container-fluid">

<div class="page-header">        

        <h1> <?php echo $title ?></h1>
      
</div>

<div class="row-fluid">
   <!--------------------------Nuevo------------------------------------------>
    <a  class="btn-success btn"href="<?php echo base_url() ?>medicos/form">
        Nuevo Medico
    </a>
    <br>
    <br>
    
    <table class="table table-hover">
        <tr>
            <th>ID</th>
            <th>Nombre</th>
            <th>Acciones</th>
        </tr>
        
<!-- ------------- Botones --------------------------------------------------->        
        <?php foreach ($m_array as $var): ?>
            <tr id="tr_<?php echo $var['id_medico'] ?>">
            <td><?php echo $var['id_medico'] ?></td>
            <td><?php echo $var['m_nombre'] ?></td>
            
<!-- --------------Acciones -------------------------------------------------->            
            <td>
                <a title="editar" href="<?php echo base_url()."medicos/form/".$var['id_medico'] ?>">
                    <i class="icon-pencil"></i>
                </a>&nbsp;&nbsp;
                <a title="eliminar" href="#foo" onclick="m_eliminar('<?php echo $var['id_medico'] ?>')" >
                    <i class="icon-remove"></i>
                </a>
            </td>
        </tr>
        <?php endforeach; ?>
    </table>
</div>


<!-- -------------- Hidden -------------------------------------------------->
<input type="hidden" value="<?php echo base_url() ?>" id="base_url">

<?php $this->load->view('mensajes/mensaje_advertencia') ?>